<?php
$db_host="localhost";
$db_name="wepopkl";
$username="root";
$password="";
// Connection
$con = mysql_connect($db_host,$username,$password);
if ($con) 
	{echo "berhasil konek!" ;}
else die("tidak berhasil konek");

$con_db = mysql_select_db($db_name) ;
if ($con_db)
	{echo "berhasil memilih database" ;}
	else die("tidak bisa milih db");

$result = mysql_query("SELECT * FROM pkl WHERE id_pkl = '".$id_pkl."'");

while($row = mysql_fetch_array($result))
  {
  echo $row['nama'] . " " . $row['alamat']." ".$row['informasi'];
  echo "<br />";
  }

mysql_close($con);
?>